package com.itheima.d5_polymorphic.demo5;

/**
 * 键盘类，实现USB接口
 */
public class Keyboard implements USB {
    @Override
    public void insert() {
        System.out.println("接入键盘！");
    }

    @Override
    public void close() {
        System.out.println("断开键盘！");
    }

    /**
     * 特有功能：打字
     */
    public void code() {
        System.out.println("键盘打字！");
    }
}
